package com.bk.mapper;

import com.bk.entity.Like;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LikeMapper {
    /**
     * 根据帖子id查询点赞
     * @param innoId
     * @return
     */
    @Select("select * from `like` where innovation_id = #{innoid}")
    List<Like> getByInnovationId(Long innoId);
}
